package com.yami.shop.bean.enums;

/**
 * 人脸类型枚举
 * @author AI Assistant
 */
public enum FaceTypeEnum {
    /**
     * 男性
     */
    MALE(1, "男性"),
    
    /**
     * 女性
     */
    FEMALE(2, "女性"),
    
    /**
     * 中性
     */
    NEUTRAL(3, "中性");

    private final Integer value;
    private final String desc;

    FaceTypeEnum(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    public Integer value() {
        return value;
    }

    public String desc() {
        return desc;
    }

    public static FaceTypeEnum instance(Integer value) {
        for (FaceTypeEnum type : FaceTypeEnum.values()) {
            if (type.value.equals(value)) {
                return type;
            }
        }
        return null;
    }
}